﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            Thumbnailv2.Thumbnail obj = new Thumbnailv2.Thumbnail();
            obj.InputImage = "D:\\Templates\\a.jpg";
            obj.W = 300;
            obj.H = 200;
            //obj.cropW = 980;
            //obj.cropH = 350;
            //obj.X = 0;
            //obj.Y = 0;
            string filename = obj.CreateThumb();

            obj.InputImage = "D:\\Templates\\dam vinh hung.jpg";
            obj.W = 100;
            obj.H = 300;
            obj.CreateThumb();
            return;

            obj.InputImage = "D:\\Templates\\dam vinh hung.jpg";
            obj.W = 200;
            obj.H = 200;
            //obj.cropW = 980;
            //obj.cropH = 350;
            //obj.X = 0;
            //obj.Y = 0;
            filename = obj.CreateThumb();



            obj.InputImage = "D:\\Templates\\thuy tien ngag.jpg";
            obj.W = 200;
            obj.H = 200;
            filename = obj.CreateThumb();


            obj.InputImage = "D:\\Templates\\banner(2).jpg";
            obj.W = 200;
            obj.H = 200;
            filename = obj.CreateThumb();


            obj.InputImage = "D:\\Templates\\bluetooth-recevier(4).jpg";
            obj.W = 200;
            obj.H = 200;
            filename = obj.CreateThumb();
        }
    }
}
